namespace WFTest.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class V_AP_PAYABLE
    {
        public int? FENTRYID { get; set; }

        [StringLength(50)]
        public string F_VIVH_TEXT_PI { get; set; }

        [Key]
        [Column(Order = 0)]
        [StringLength(80)]
        public string FBILLNO { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(8)]
        public string FDOCUMENTSTATUS { get; set; }

        [StringLength(255)]
        public string FBILLTYPE { get; set; }

        [StringLength(255)]
        public string FPAYORG { get; set; }

        [StringLength(80)]
        public string FCURRENCY { get; set; }

        [Key]
        [Column(Order = 2)]
        public DateTime FDATE { get; set; }

        [Key]
        [Column(Order = 3)]
        public DateTime FENDDATE { get; set; }

        [Key]
        [Column(Order = 4)]
        public decimal FALLAMOUNTFORSUM { get; set; }

        [StringLength(100)]
        public string FPAYCONDITON { get; set; }

        [StringLength(255)]
        public string FPURCHASER { get; set; }

        [StringLength(255)]
        public string FPURORG { get; set; }

        [StringLength(255)]
        public string FPURDEP { get; set; }

        [StringLength(255)]
        public string FSUPNUM { get; set; }

        [StringLength(255)]
        public string FSUPP { get; set; }

        [StringLength(50)]
        public string FSHORTNAME { get; set; }

        [Key]
        [Column(Order = 5)]
        [StringLength(8)]
        public string FSETACCOUNTTYPE { get; set; }

        [StringLength(80)]
        public string FNUMBER { get; set; }

        [StringLength(255)]
        public string FNAME { get; set; }

        [StringLength(510)]
        public string FSPECIFICATION { get; set; }

        public decimal? FPRICEQTY { get; set; }

        [StringLength(80)]
        public string FUNIT { get; set; }

        public decimal? FTAXPRICE { get; set; }

        public decimal? FPRICE { get; set; }

        public decimal? FENTRYTAXRATE { get; set; }

        public decimal? FEntryDiscountRate { get; set; }

        public decimal? FDISCOUNTAMOUNTFOR { get; set; }

        public decimal? FNoTaxAmountFor { get; set; }

        public decimal? FTAXAMOUNTFOR { get; set; }

        public decimal? FALLAMOUNTFOR { get; set; }

        public DateTime? FAPPROVEDATE { get; set; }

        [StringLength(160)]
        public string FSOURCEBILLNO { get; set; }

        [StringLength(255)]
        public string FCOMMENT { get; set; }

        [Key]
        [Column(Order = 6)]
        [StringLength(500)]
        public string FREMARK { get; set; }
    }
}
